package cn.stylefeng.guns.modular.launchpad.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName("launchpad_pledge")
public class Pledge implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("product_id")
    @ApiModelProperty(value = "项目id")
    private Long productId;

    @TableField("member_id")
    @ApiModelProperty(value = "用户id")
    private Long memberId;

    @TableField("pledge_coin")
    @ApiModelProperty(value = "质押币种")
    private String pledgeCoin;

    @TableField("pledge_num")
    @ApiModelProperty(value = "质押数量")
    private String pledgeNum;


    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;


    @TableField("update_time")
    @ApiModelProperty(value = "修改时间", hidden = true)
    private Date updateTime;

    // ------------------- 以下是非数据库字段 -------------------


    // 单奖池参与人数
    @TableField(exist = false)
    private Integer memberCount;

    @TableField(exist = false)
    private String accountName; // 账户名

    @TableField(exist = false)
    private String productCoin; // 项目币名

    @TableField(exist = false)
    private String logoUrl; // 币logo

    // 累计挖矿奖励总量 单位:产品币
    @TableField(exist = false)
    private String subTotalDistributionNum;

    // 今日分红总量 单位:产品币
    @TableField(exist = false)
    private String todayDistributionNum;

}
